﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web_Blog
{
    public partial class CacBaiViet : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["uID"] == null)
                Response.Redirect("DangNhap.aspx");

            if (Request.QueryString["u"]==null)
                dsbaiviet.InnerHtml = Controler.POST.LoadPostList(int.Parse(Session["uID"].ToString()));
            else
                dsbaiviet.InnerHtml = Controler.POST.LoadPostList(int.Parse(Request.QueryString["u"].ToString()));
        }
    }
}